<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>登录</title>
		<!-- Bootstrap -->
		<link href="../../bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="../../jquery-datatables-1.10.15/dataTables.bootstrap.css" />
		<style type="text/css">
			#table_length,
			#table_info {
				display: inline-block;
			}

			#table_length {
				padding-top: 8px;
			}

			#table_paginate {
				display: inline-block;
			}

			#table_status {
				display: flex;
				justify-content: space-between;
			}
		</style>
	</head>
	<body>
		<div class="container-fluid">
			<header>
				<nav class="navbar navbar-default">
					<div class="container-fluid">
						<!-- Brand and toggle get grouped for better mobile display -->
						<div class="navbar-header">
							<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
							 aria-expanded="false">
								<span class="sr-only">Toggle navigation</span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</button>
							<a class="navbar-brand" href="#">书本商城</a>
						</div>

						<!-- Collect the nav links, forms, and other content for toggling -->
						<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
							<div class="nav navbar-nav navbar-right" style="line-height: 50px;">
								<span id="span_account" style="color: red; margin-right: 10px;">登录的用户名</span>
								<div class="btn-group" role="group">
									<button type="button" class="btn btn-danger">修改密码</button>
									<button type="button" class="btn btn-danger">注销</button>
								</div>
							</div>
						</div><!-- /.navbar-collapse -->
					</div><!-- /.container-fluid -->
				</nav>
			</header>
			<div class="row">
				<div class="col-md-2">
					<aside>
						<div class="list-group">
							<a href="javascript:void(0);" title="sy" class="list-group-item active">
								首页<span class="glyphicon glyphicon-menu-right pull-right" style="
    padding-top: 1px;" aria-hidden="true"></span>
							</a>
							<a href="javascript:void(0);" title="ssgly" class="list-group-item">宿舍管理员管理<span class="glyphicon glyphicon-menu-right pull-right"
								 style="
    padding-top: 1px;"></span></a>
							<a href="javascript:void(0);" title="xsgl" class="list-group-item">学生管理<span class="glyphicon glyphicon-menu-right pull-right"
								 style="
    padding-top: 1px;"></span></a>
							<a href="javascript:void(0);" title="qqjl" class="list-group-item">缺勤记录<span class="glyphicon glyphicon-menu-right pull-right"
								 style="
    padding-top: 1px;"></span></a>
							<a href="javascript:void(0);" title="xgmm" class="list-group-item">修改密码<span class="glyphicon glyphicon-menu-right pull-right"
								 style="
    padding-top: 1px;"></span></a>
						</div>
					</aside>
				</div>
				<div class="col-md-10">
					<div id="content">
						
					</div>
				</div>
			</div>
			<div id="modal_add" class="modal fade" tabindex="-1" role="dialog">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							<h4 class="modal-title">添加</h4>
						</div>
						<div class="modal-body">
							<form id="form">
								<div class="form-group">
									<input type="text" class="form-control" name="name" placeholder="书本名称" /></br>
								</div>
								<div class="form-group">
									<input type="text" class="form-control" name="price" placeholder="单价" /></br>
								</div>
								<div class="form-group">
									<input type="date" class="form-control" name="tdate" placeholder="出版日期" /></br>
								</div>
							</form>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
							<button type="button" class="btn btn-primary">保存</button>
						</div>
					</div><!-- /.modal-content -->
				</div><!-- /.modal-dialog -->
			</div><!-- /.modal -->

		</div>
		<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
		<script src="../../js/jquery-3.5.1.js"></script>
		<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
		<script src="../../bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
		<script src="../../jquery-datatables-1.10.15/jquery.dataTables.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../jquery-datatables-1.10.15/dataTables.bootstrap.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			

			$(".list-group").find("a").click(function() {
				let title = this.title;
				$("#content").empty();
				switch (title) {
					case 'sy':
						console.log("首页");
						$("#content").load("home.html");
						break;
					case 'ssgly':
						console.log("宿舍管理员");
						$("#content").load("home2.html");
						break;
					case 'xsgl':
						console.log("学生管理");
						break;
					case 'qqjl':
						console.log("缺勤记录");
						break;
				}
			});
		</script>
	</body>
</html>
